import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import router from "@/router";
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import './style.css';
import 'element-plus/dist/index.css'
import '@/assets/icons/iconfont/iconfont.css'
import App from './App.vue'
import sizeObDirective from "@/utils/sizeObDirective.ts";

const app = createApp(App)
// 注册自定义指令
app.directive('size-ob',sizeObDirective)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

createApp(App)
    .use(ElementPlus)
    .use(router)
    .mount('#app')
